//
//  YFFullScreenCameraViewController.h
//  PYQDemo
//
//  Created by Coollang on 2017/9/11.
//  Copyright © 2017年 coollang. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    YFCameraTypePhoto = 0,
    YFCameraTypeVideo,
    YFCameraTypePhotoAndVideo
} YFCameraType;

@class YFRecordPhotoModel,TZAssetModel;
@protocol YFFullScreenCameraViewControllerDelegate <NSObject>

- (void)fullScreenCameraDidFinishClick:(YFRecordPhotoModel *)model;

@end
@interface YFFullScreenCameraViewController : UIViewController

@property (assign, nonatomic) YFCameraType type;

@property (nonatomic, weak) id <YFFullScreenCameraViewControllerDelegate> delegate;

//录制视频的最小时间 defalut 3s
@property (nonatomic, assign)NSTimeInterval minRecordTime;
//录制视频的最大时间:defalut 60s
@property (nonatomic, assign)NSTimeInterval maxRecordTime;

@end


typedef enum : NSUInteger {
    YFRecordPhotoMediaPhoto = 0, // 照片
    YFRecordPhotoMediaVideo   // 视频
} YFRecordPhotoMediaType;


@interface YFRecordPhotoModel : NSObject

@property (nonatomic, assign)YFRecordPhotoMediaType mediaType;

@property (nonatomic, strong) TZAssetModel *tzAssetModel;

/**
 小图 -- 选中之后有值, 取消选中为空
 */
@property (strong, nonatomic) UIImage *thumbPhoto;
/**
 图片宽高
 */
@property (assign, nonatomic) CGSize imageSize;
/**
 预览照片 -- 选中之后有值, 取消选中为空
 */
@property (strong, nonatomic) UIImage *previewPhoto;
/**
 拍照之后的唯一标示,在tmp沙盒中的路径,拍摄完成确认后会自动保存到相册中
 */
@property (copy, nonatomic) NSString *cameraIdentifier;

/**
 通过相机摄像的视频URL
 */
@property (strong, nonatomic) NSURL *videoURL;
/**
 视频时长
 */
@property (copy, nonatomic) NSString *videoTime;

@end
